<?php
/**
 * Created by PhpStorm.
 * User: stc17
 * Date: 2020/3/2
 * Time: 15:29
 */
class Index
{
    public  function get(){
        echo "index -> get()";
    }

    public function demo(){
        echo self::get();
    }
}
(new Index)->demo();
//echo Index::get();